package ${location}.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import ${location}.model.dto.${camelClassName}.${className}AddDto;
import ${location}.model.dto.${camelClassName}.${className}PageDto;
import ${location}.model.entities.${className};
import ${location}.model.vo.${camelClassName}.${className}Vo;

/**
 * @author Administrator
 */
public interface ${className}Service extends IService<${className}> {

	/**
	 * 新增${className}
	 *
	 * @param ${camelClassName}
	 * @return
	 */
	${className}Vo saveEntity(${className}AddDto ${camelClassName});

	/**
	 * 根据id删除${className}
	 *
	 * @param id
	 * @return
	 */
	${idType} deleteEntityById(${idType} id);

	/**
	 * 根据id更新${className}
	 *
	 * @param id
	 * @param ${camelClassName}
	 * @return
	 */
	${className}Vo updateEntityById(${idType} id, ${className}AddDto ${camelClassName});

	/**
	 * 根据id查询${className}
	 *
	 * @param id
	 * @return
	 */
	${className}Vo getEntityById(${idType} id);

	/**
	 * 分页查询${className}
	 *
	 * @param dto
	 * @return
	 */
	IPage<${className}Vo> pageQuery(${className}PageDto dto);
}
